<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>添加联系人</title>
    <style>
    	header{text-align:center;}
    	.content{width:800px; height:600px; margin:10px auto;}
    	.content table{border:1px solid black; margin:10px auto; border-collapse:collapse;}
    	.content table td,.content table th{border:1px solid black; padding:4px;}
    </style>
  </head>
  
  <body>
    <header><h3>添加联系人</h3></header>
    <div class="content">
	    <form action="${pageContext.request.contextPath }/AddServlet" method="post">
	    	<table>
	    		<tr>
	    			<td>id：</td>
	    			<td>
	    				<input type="text" name="id" value="${sessionScope.uuid }" />
	    			</td>
	    		</tr>
	    		<tr>
	    			<td>姓名：</td>
	    			<td><input type="text" name="name">${addResult }</td>
	    		</tr>
	    		<tr>
	    			<td>性别：</td>
	    			<td>
	    				<input type="radio" name="gender" checked="checked" value="男" /> 男
	    				<input type="radio" name="gender" value="女"/> 女
	    			</td>
	    		</tr>
	    		<tr>
	    			<td>年龄：</td>
	    			<td><input type="text" name="age"/></td>
	    		</tr>
	    		<tr>
	    			<td>手机号：</td>
	    			<td><input type="text" name="telephone"/></td>
	    		</tr>
	    		<tr>
	    			<td>QQ：</td>
	    			<td><input type="text" name="QQ"/></td>
	    		</tr>
	    		<tr>
	    			<td>email</td>
	    			<td><input type="text" name="email"/></td>
	    		</tr>
	    		<tr>
	    			<td><input type="submit" value="添加" /></td>
	    			<td>
	    				<a href="${pageContext.request.contextPath }/ShowListServlet">返回主界面</a>
	    			</td>
	    		</tr>
	    	</table>
	    </form>
    </div>
  </body>
</html>
